<?php

try {

    $name = 1000;

    if($name>=1000){
        throw new Exception("name 大于1000", 1);
    }

    $db = 1000;


    echo $db;
    
} catch (Exception $e) {
    
    var_dump($e);

}
